package com.example.echoewish.ui;

import android.os.Bundle;
import android.view.Window;

import androidx.appcompat.app.AppCompatActivity;

import com.example.echoewish.R;
import com.example.echoewish.util.StatusBarUtils;

public abstract class EchoWishCompatActivity extends AppCompatActivity {

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        StatusBarUtils.setWindowStatusBarColor(this, R.color.normal);
        setContentView();
        initView();
        initViewModel();
        observeLiveData();
    }
    abstract public void setContentView();

    abstract public void initView();

    abstract public void initViewModel();

    abstract public void observeLiveData();
}
